demos: Enable multidevice behavior on event-axes demo
authorCarlos Garnacho <carlosg@gnome.org>
Thu, 18 Jun 2015 13:09:46 +0000 (15:09 +0200)
committerCarlos Garnacho <carlosg@gnome.org>
Wed, 6 Apr 2016 13:43:29 +0000 (15:43 +0200)
On wayland we get separate master/slaves for each tablet, we will
need to receive crossing events for each master pointer if there's
more than one around.

demos/gtk-demo/event_axes.c

index c2e0b424eb1da0fcee63e2beccae90bb1a037da3..ea8ed67a1fcfda510f83ba402bd61fea598f9024 100644 (file)
@@ -408,6 +408,7 @@ do_event_axes (GtkWidget *toplevel)
 
       box = gtk_event_box_new ();
       gtk_container_add (GTK_CONTAINER (window), box);
+      gtk_widget_set_support_multidevice (box, TRUE);
       gtk_widget_add_events (box,
                             GDK_POINTER_MOTION_MASK |
                             GDK_BUTTON_PRESS_MASK |